Skip to content

#11 downloader #14

Merged
merged 13 commits into from
Dec 11, 2021
Merged

#11 downloader #14

merged 13 commits into from
Dec 11, 2021

Conversation

pan261
Copy link
Contributor

@pan261 pan261 commented Dec 9, 2021

Downloader works when running docker and when running locally

  1. run npx tsc to build the .ts files into a /build folder
  2. make sure the following lines are in the .env file
PORT=3000
LOCAL_DIR_GANTRY=./FileShare/Gantry
LOCAL_DIR_LATHE=./FileShare/Lathe
LOCAL_DIR_MILL=./FileShare/Mill
LOCAL_DIR_WATERJET=./FileShare/Waterjet
  1. Create a 'FileShare' folder in the root directory, and add the subfolder specified in the previous step
  2. Running docker-compose up --build will build and run the project, files should be saved in the folders you just created

If you decide to run it manually, you need to run it from the /src directory or higher (e.g. node build/server.js) instead of in the /build directory itself because the environment variables wont be recognized otherwise

  • you will have to run node build/taskRunner.js gantry, etc. for the different machine folders
    • may need to use sudo if you get a permission error
  • files will be saved under /src/build/FileShare/...

closes #11

@pan261 pan261 merged commit 2828da6 into master Dec 11, 2021
@pan261 pan261 deleted the #11-downloader branch January 25, 2022 04:58
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Downloader
1 participant